FROM nginx:alpine

# 复制本地构建好的 H5 文件（注意新路径）
COPY unpackage/dist/build/web /usr/share/nginx/html

# 复制 nginx 配置
COPY nginx.conf /etc/nginx/nginx.conf

# 设置权限
RUN chown -R nginx:nginx /usr/share/nginx/html && \
    chmod -R 755 /usr/share/nginx/html

EXPOSE 5175
CMD ["nginx", "-g", "daemon off;"]